package com.jintoufs.service.activiti;

import com.jintoufs.dao.QueryFilters;
import com.jintoufs.domain.activiti.Activiti;
import com.jintoufs.domain.activiti.ActivitiProduct;

import java.util.List;
import java.util.Map;

/**
 * Created by xufei on 2017/12/20.
 */
public interface ActivitiService {

    List<Map> queryByParams(Map<String, Object> params);

    /**
     * 保存活动
     *
     * @return
     */
    Activiti save(Activiti activiti);
    Integer update(Activiti activiti);

    void delete(Integer id);

    /**
     * 根据条件查询
     *
     * @param filters 属性列表，过滤存在的属性值
     */
    List<Map<String,Object>> getByFilter(QueryFilters filters);

    //活动明细
    Activiti getById(Integer id);

    void insertActivitiProduct(ActivitiProduct activitiProduct);

    List<Map<String,Object>> selectByParams(Map<String,Object> param);
}
